from django.urls import re_path, path, include
from rest_framework import routers
from . import views

router = routers.DefaultRouter()

router.register(r"reguser", views.allinpayUserCreatViewSet, basename="01用户注册")
router.register(r"login", views.AllinpayUserLoginViewSet, basename="02用户登录")
router.register(r"activation", views.AllinpayUserActivationViewSet, basename="03用户激活")
router.register(r"auser", views.AllinpayUserListSetViewSet, basename="04用户列表")
router.register(r"astatus", views.AllinpayUserStatusSetViewSet, basename="05用户状态")
router.register(r"arole", views.AllinpayUserGroupSetViewSet, basename="06用户角色")
router.register(r"aaction", views.AllinpayUserActiveSetViewSet, basename="07用户激活")
router.register(r"abackends", views.AllinpayUserBackstSetViewSet, basename="08用户后台")
router.register(r"asuper", views.AllinpayUserSuperSetViewSet, basename="09用户超级")
router.register(r"amyrole", views.AllinpayAuthGroupSetViewSet, basename="10角色列表")
router.register(
    r"roleperm", views.AllinpayAuthGroupPermissionsSetViewSet, basename="11角色权限"
)

router.register(r"allperms", views.AllinpayAuthViewsSetViewSet, basename="12所有权限")
router.register(r"amypswd", views.AllinpayPasswordSetViewSet, basename="13用户密码")
router.register(r"amybank", views.AllinpayUserBankSetViewSet, basename="14用户银行卡")

router.register(r"userObj", views.AllinpayUserobjectListViewSet, basename="20用户对象权限")

urlpatterns = [
    path("", include(router.urls)),
]
